home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
MacApp
/
MacApp 3.0a2
/
UserStartup•MacApp
< prev
Wrap
Text File
|
1991-05-01
|
975b
|
25 lines
# Copyright © 1986-1990 Apple Computer, Inc. All rights reserved.
# Drop this file in your MPW Folder
# Set the location of the MacApp Folder
# If the folder can't be found; automatically prompts user for it and
# remember where the folder was found
if ¬ "{MacApp}" && "`Exists "{ShellDirectory}"MacApp_Folder`"
Set MacApp "`Catenate "{ShellDirectory}"MacApp_Folder`"
End
if ¬ "`Exists "{ShellDirectory}"MacApp_Folder`" || ¬ "`Exists "{MacApp}"`"
Set exit 0; Set temp "{Boot}"; Loop; ∂
Set temp "`(GetFileName "{temp}" -q -d -m "Where is your ∂"MacApp∂" folder?")≥dev:null`"; ∂
if "{temp}"!=""; Echo -n "{temp}" > "{ShellDirectory}"MacApp_Folder; ∂
Set MacApp "{temp}"; Else; exit; End; ∂
(set x "`Files "{temp}"Startup`") ≥dev:null; ∂
if "{x}"==""; Alert MacApp - The ∂"{temp}∂" folder does not contain MacApp files.; else; break; end; End; ∂
set exit 1 ;
End
Set MacApp "`Catenate "{ShellDirectory}"MacApp_Folder`"
Export MacApp
Execute "{MacApp}"Startup